package cn.aigoubuy.service;

import cn.aigoubuy.domain.Category;

import java.sql.SQLException;
import java.util.List;

public interface CategoryService {
    /**
     * 查询所有
     * @return
     */
    List<Category> findAll() throws SQLException;

    /**
     * 查询分类通过缓存服务器
     * @return
     * @throws Exception
     */
    String findAllByAjax() throws Exception;

}